/*!
 * Bootstrap Toggle: bootstrap5-toggle.css v4.0.0
 * https://palcarazm.github.io/bootstrap5-toggle/
 *
 * @author 2011-2014 Min Hur (https://github.com/minhur)
 * @author 2018-2019 Brent Ely (https://github.com/gitbrent)
 * @author 2022 Pablo Alcaraz Martínez (https://github.com/palcarazm)
 * @lisense MIT License
 * @see https://github.com/palcarazm/bootstrap5-toggle/blob/master/LICENSE
 * @preserve
 */

/*
* @added 3.0.0: Return support for "*-xs" removed in Bootstrap-4
* @see: [Comment](https://github.com/twbs/bootstrap/issues/21881#issuecomment-341972830)
*/
.btn-group-xs > .btn, .btn-xs {
    padding: .35rem .4rem .25rem .4rem;
    font-size: .875rem;
    line-height: .5;
    border-radius: .2rem;
}

.checkbox label .toggle, .checkbox-inline .toggle {
    margin-left: -1.25rem;
    margin-right: .35rem;
}

.toggle {
    position: relative;
    overflow: hidden;
}

.toggle input[type="checkbox"] {
    display: none;
}

.toggle-group {
    position: absolute;
    width: 200%;
    top: 0;
    bottom: 0;
    left: 0;
    transition: left 0.35s;
    -webkit-transition: left 0.35s;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.toggle-group label, .toggle-group span {
    cursor: pointer;
}

.toggle.off .toggle-group {
    left: -100%;
}

.toggle-on {
    display: table;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 50%;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.toggle-off {
    display: table;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none; /* Bootstrap 4.0 Support via (Issue #186)[https://github.com/minhur/bootstrap-toggle/issues/186]) */
}

.toggle-handle {
    position: relative;
    margin: 0 auto;
    padding-top: 0px;
    padding-bottom: 0px;
    height: 100%;
    width: 0px;
    border-width: 0 1px;
    background-color: #fff;
    border-color: #fff;
}

.toggle.btn-outline-primary .toggle-handle {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.toggle.btn-outline-secondary .toggle-handle {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.toggle.btn-outline-success .toggle-handle {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.toggle.btn-outline-danger .toggle-handle {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.toggle.btn-outline-warning .toggle-handle {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
}

.toggle.btn-outline-info .toggle-handle {
    background-color: var(--bs-info);
    border-color: var(--bs-info);
}

.toggle.btn-outline-light .toggle-handle {
    background-color: var(--bs-light);
    border-color: var(--bs-light);
}

.toggle.btn-outline-dark .toggle-handle {
    background-color: var(--bs-dark);
    border-color: var(--bs-dark);
}

.toggle[class*="btn-outline"]:hover .toggle-handle {
    background-color: var(--bs-light);
    opacity: 0.5;
}

/* NOTE: Must come first, so classes below override as needed */
/* [default] (bootstrap-4.1.3 - .btn - h:38px) */
.toggle.btn {
    min-width: 3.7rem;
    min-height: 2.15rem;
}

.toggle-on.btn {
    padding-right: 1.5rem;
    min-height: 38px; // hack to get the exact height for now
}

.toggle-off.btn {
    padding-left: 1.5rem;
    min-height: 38px; // hack to get the exact height for now
}

/* `lg` (bootstrap-4.1.3 - .btn - h:48px) */
.toggle.btn-lg {
    min-width: 5rem;
    min-height: 2.815rem;
}

.toggle-on.btn-lg {
    padding-right: 2rem;
}

.toggle-off.btn-lg {
    padding-left: 2rem;
}

.toggle-handle.btn-lg {
    width: 2.5rem;
}

/* `sm` (bootstrap-4.1.3 - .btn - h:31px) */
.toggle.btn-sm {
    min-width: 3.125rem;
    min-height: 1.938rem;
}

.toggle-on.btn-sm {
    padding-right: 1rem;
}

.toggle-off.btn-sm {
    padding-left: 1rem;
}

/* `xs` (bootstrap-3.3 - .btn - h:22px) */
.toggle.btn-xs {
    min-width: 2.19rem;
    min-height: 1.375rem;
}

.toggle-on.btn-xs {
    padding-right: .8rem;
}

.toggle-off.btn-xs {
    padding-left: .8rem;
}
